package api

import (
	"github.com/gogf/gf/v2/frame/g"
	"lot_admin_api/internal/model"
)

// AddAuthReq  新增或者编辑权限
type AddAuthReq struct {
	g.Meta `path:"/Auth/add" tags:"权限模块" method:"post" summary:"新增权限"`
	model.AuthInfo
}

// UpdateAuthReq 编辑权限
type UpdateAuthReq struct {
	g.Meta `path:"/Auth/update" tags:"权限模块" method:"post" summary:"编辑权限"`
	model.AuthInfoAndIdRes
}

// DeleteAuthReq  删除权限
type DeleteAuthReq struct {
	g.Meta `path:"/Auth/delete" tags:"权限模块" method:"delete" summary:"删除权限"`
	model.AuthIdRes
}

// GetInfoAuthReq  获取当前权限的详情
type GetInfoAuthReq struct {
	g.Meta `path:"/Auth/info" tags:"权限模块" method:"get" summary:"获取当前权限的详情"`
	model.AuthIdRes
}

// GetTreeAuthReq  获取权限的树结构
type GetTreeAuthReq struct {
	g.Meta `path:"/Auth/tree" tags:"权限模块" method:"get" summary:"获取权限的树结构"`
	model.AuthIdRes
}

// AuthBindRoleReq  权限绑定角色
type AuthBindRoleReq struct {
	g.Meta `path:"/Auth/bind-role" tags:"权限模块" method:"post" summary:"权限绑定角色"`
	model.RoleIdRes
	model.AuthIdsRes
}
